import { request } from "@/utils/request";

// 查询告警信息列表
export function getAlarmList(params) {
  return request({
    url: "/Alarm/list",
    method: "GET",
    params,
  });
}

// 告警确认
export function alterConfirm(params) {
  return request({
    url: "/Alarm/alterConfirmById",
    method: "GET",
    params,
  });
}

// 查询日志列表
export function getLogList(params) {
  return request({
    url: "/Alarm/listLog",
    method: "GET",
    params,
  });
}

// 获取告警人像图片
export function getDetail(params) {
  return request({
    url: "/Alarm/getDetail",
    method: "GET",
    params,
  });
}

// 导出日志
export function exportLogExcel(params) {
  return request({
    url: "/Alarm/exportLogExcel",
    method: "GET",
    params,
  });
}